<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>demo by hans</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    .main {
      width: 500px;
      margin: 0 auto;
    }
    p {
      line-height: 2;
    }
    #canvas {
      background-color: #000;
    }
  </style>
</head>
<body>
  <div class="main">
    <p>控制：w a s d，空格暂停</p>
    <canvas id="canvas" width="500" height="600">浏览器不支持！</canvas>
  </div>
</body>
<script src="./js/sprite.js"></script>
<script src="./js/stage.js"></script>
<script src="./js/scene.js"></script>
<script src="./js/bullet.js"></script>
<script src="./js/enemy.js"></script>
<script src="./js/particle.js"></script>
<script src="./js/player.js"></script>
<script>
  let ctx = canvas.getContext('2d');

  let stage = new Stage()
  let gs = new GameScene()
  stage.add(gs)
  Stage.unfreeze(gs)


</script>
</html>